package com.dlc.shop.service;

import com.dlc.shop.common.bean.leaf.Result;

/**
 * @author leaf
 */
public interface IDGen {

    /**
     * get
     *
     * @param key    key
     * @param length
     * @return Result
     */
    Result get(String key, int length);

    /**
     * init
     * @return inited
     */
    boolean init();

}
